Optimal. Leaf size=48 \[ \frac {\, _2F_1\left (2,\frac {3+n}{2};\frac {5+n}{2};\sec ^2(e+f x)\right ) (b \sec (e+f x))^{3+n}}{b^3 f (3+n)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 48, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.105, Rules used = {2702, 371}
\begin {gather*} \frac {(b \sec (e+f x))^{n+3} \, _2F_1\left (2,\frac {n+3}{2};\frac {n+5}{2};\sec ^2(e+f x)\right )}{b^3 f (n+3)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 371
Rule 2702
Rubi steps
\begin {align*} \int \csc ^3(e+f x) (b \sec (e+f x))^n \, dx &=\frac {\text {Subst}\left (\int \frac {x^{2+n}}{\left (-1+\frac {x^2}{b^2}\right )^2} \, dx,x,b \sec (e+f x)\right )}{b^3 f}\\ &=\frac {\, _2F_1\left (2,\frac {3+n}{2};\frac {5+n}{2};\sec ^2(e+f x)\right ) (b \sec (e+f x))^{3+n}}{b^3 f (3+n)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(201\) vs. \(2(48)=96\).
time = 3.09, size = 201, normalized size = 4.19 \begin {gather*} \frac {b (b \sec (e+f x))^{-1+n} \left (2 \, _2F_1(1,1-n;2-n;\cos (e+f x))+2 \, _2F_1(2,1-n;2-n;\cos (e+f x))+2^n \, _2F_1\left (1-n,-n;2-n;\frac {1}{2} \cos (e+f x) \sec ^2\left (\frac {1}{2} (e+f x)\right )\right ) \sec ^2\left (\frac {1}{2} (e+f x)\right )^{1-n}+2^n \, _2F_1\left (1-n,1-n;2-n;\frac {1}{2} \cos (e+f x) \sec ^2\left (\frac {1}{2} (e+f x)\right )\right ) \sec ^{1-n}(e+f x) \left (\cos ^2\left (\frac {1}{2} (e+f x)\right ) \sec (e+f x)\right )^{-1+n}\right )}{8 f (-1+n)} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.05, size = 0, normalized size = 0.00 \[\int \left (\csc ^{3}\left (f x +e \right )\right ) \left (b \sec \left (f x +e \right )\right )^{n}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (b \sec {\left (e + f x \right )}\right )^{n} \csc ^{3}{\left (e + f x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int \frac {{\left (\frac {b}{\cos \left (e+f\,x\right )}\right )}^n}{{\sin \left (e+f\,x\right )}^3} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________